Incorrect Permission Assignment for Critical Resource Affecting apr package, versions [0.9.0,1.7.5)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team

    Threat Intelligence

    EPSS
    0.04% (6th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-UNMANAGED-APR-7833825
  • published 27 Aug 2024
  • disclosed 26 Aug 2024
  • credit Thomas Stangner

How to fix?

Upgrade apr to version 1.7.5 or higher.

Overview

Affected versions of this package are vulnerable to Incorrect Permission Assignment for Critical Resource in the form of shared named memory segments having 0644 permissions by default, in shm.c. This is only exploitable on Unix platforms

Workaround

This vulnerability can be avoided by building with APR_USE_SHMEM_SHMGET=1 in apr.h.

CVSS Scores

version 4.0
version 3.1
Expand this section

Snyk

Recommended
4.8 medium
  • Attack Vector (AV)
    Local
  • Attack Complexity (AC)
    Low
  • Attack Requirements (AT)
    None
  • Privileges Required (PR)
    Low
  • User Interaction (UI)
    None
  • Confidentiality (VC)
    Low
  • Integrity (VI)
    None
  • Availability (VA)
    None
  • Confidentiality (SC)
    None
  • Integrity (SI)
    None
  • Availability (SA)
    None