Skip to content
Noroxi
NVD / CVE Program· CNA GitHub_M

CVE-2024-35242: Composer vulnerable to command injection via malicious git/hg branch names

Noroxi assessment

Priority: Monitor (action score 36/100)

  • Public proof-of-concept code exists (GitHub); there is no record of exploitation in the wild.
  • Probability of exploitation in the next 30 days: 3.2% (FIRST EPSS); higher than 88.5% of all records.
  • Anyone who can reach it over the internet can trigger it. No account or password is required. A user must open a link or visit a page. No special conditions are required; it is repeatable.
  • Fixed version: composer (Alpine:v3.19) 2.7.7-r0; composer (Debian:10) 1.8.4-1+deb10u4; composer (Debian:11) 2.0.9-2+deb11u3.

Low priority for now. Upgrade to composer (Alpine:v3.19) 2.7.7-r0; composer (Debian:10) 1.8.4-1+deb10u4; composer (Debian:11) 2.0.9-2+deb11u3 or later.

Generated automatically from the record's data: CVSS (NVD and CNA), CISA KEV and SSVC, FIRST EPSS, exploit sources, fixed versions. How we calculate it

Primary sources: NVD · CVE.org · FIRST EPSS

Composer is a dependency manager for PHP. On the 2.x branch prior to versions 2.2.24 and 2.7.7, the `composer install` command running inside a git/hg repository which has specially crafted branch names can lead to command injection. This requires cloning untrusted repositories. Patches are available in version 2.2.24 for 2.2 LTS or 2.7.7 for mainline. As a workaround, avoid cloning potentially compromised repositories.

HighCVSS 8.8 · v3.1—Proof of concept Fix available
Published
Jun 10, 2024
Updated
Jun 17, 2026
EPSS
3.2% · 88th percentile

Report tools

JSON

Action score

36

Monitor

Low priority for now.

CVSS
35 / 40 · 8.8 / 10
CISA KEV
0 / 30 · Not listed
EPSS
1 / 30 · 3.2%

CISA SSVC decision

Exploitation
none
Automatable
no
Technical impact
total

Vulnrichment: CISA's decision-tree inputs.

CNA vs NVD score

NVD
—
CNA · GitHub_M
8.8
NVD has not scored this yet; the score shown is the CNA’s.

The score given by the assigning authority versus NVD’s independent score. A gap means the severity is contested.

Get told when this record changes

  • Not in KEV: no record of exploitation in the wild
  • Proof of concept exists, no weaponized module
  • A fix has been released

If any of these changes, we'll tell you in the daily email digest.

Follow CVE-2024-35242

When you'll hear from us

  • when it enters CISA KEV
  • when exploit code appears or is weaponized
  • when the record is updated (including a fixed version)
  • when EPSS rises 20 points in a week

One daily email digest (06:00 UTC); connect a webhook for KEV listings and weaponized exploits instantly.

Your free account also gets you

Running WordPress? Scan your site free with WP Lens

  • Stack alerts: add the products and versions you run, get the new CVEs that affect them
  • Uptime monitoring: 1 site, instant email when it goes down
  • Add your domain: subdomains and takeover risk scanned every week (1 domain)
  • 10 scans an hour on the security tools (3 a day without an account), an API key and MCP
  • All your scans in one panel: findings, what changed in the last scan, a report per domain or per client (PDF, share link)
All free tools

Sign up with email · Have an account? Sign in

Free account, no card. Unfollow any time.

Running WordPress? Scan your site free with WP Lens

Is your version affected? Check it

Noroxi analysis

What does it mean in your environment?

The assessment above is generated automatically from the record's data; it doesn't know your environment. Our team verifies on your systems whether this vulnerability is actually exploitable and which mitigation is enough.

We use this product, ask for help

Affected systems

Is your version affected?

Pick the product and type the version you run. It's compared with this record's version ranges in your browser; the version isn't sent anywhere.

VendorProduct
fedoraprojectfedora
getcomposercomposer

Versions reported by the vendor

Affected version ranges reported by the assigning authority (GitHub_M). Independent of NVD's CPE analysis and usually ahead of it.

  • composer composer

    • >= 2.0, < 2.2.24, >= 2.3, < 2.7.7affected

Package-level exposure

OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.

EcosystemPackageAffected rangeFix
Alpine:v3.19composerbefore 2.7.7-r02.7.7-r0
Debian:10composerbefore 1.8.4-1+deb10u41.8.4-1+deb10u4
Debian:11composerbefore 2.0.9-2+deb11u32.0.9-2+deb11u3
Debian:12composerbefore 2.5.5-1+deb12u22.5.5-1+deb12u2
Debian:13composerbefore 2.7.7-12.7.7-1
openSUSE:Leap 15.5php-composer2before 2.2.3-150400.3.12.12.2.3-150400.3.12.1
openSUSE:Leap 15.6php-composer2before 2.6.4-150600.3.3.12.6.4-150600.3.3.1
openSUSE:Tumbleweedphp-composer2before 2.7.7-1.12.7.7-1.1
Packagistcomposer/composerfrom 2.0 · before 2.2.242.2.24
Packagistcomposer/composerfrom 2.3 · before 2.7.72.7.7
SUSE:Linux Enterprise Module for Web and Scripting 15 SP5php-composer2before 2.2.3-150400.3.12.12.2.3-150400.3.12.1
SUSE:Linux Enterprise Module for Web and Scripting 15 SP6php-composer2before 2.6.4-150600.3.3.12.6.4-150600.3.3.1
SUSE:Linux Enterprise Module for Web and Scripting 15 SP7php-composer2before 2.6.4-150600.3.12.12.6.4-150600.3.12.1

Other highest-scoring records for the same primary product.

  • CVE-2024-35241Composer vulnerable to command injection via malicious git branch name
    35Monitor
  • CVE-2026-84361Composer: Perforce source URL permits P4PORT `rsh:` command execution
    30Monitor
  • CVE-2026-45793Composer: Github Actions issued GITHUB_TOKEN disclosure in GitHub Actions logs
    30Monitor

Published before and after this one in the same product

  • Later →CVE-2026-59946Jul 8, 2026 · Composer: Path traversal in package bin field lets dependencies chmod arbitrary host files
    24Monitor
  • Later →CVE-2026-59947Jul 8, 2026 · Composer: URL-embedded HTTP-Basic username leaks to verbose logs (GitHub PAT exposure)
    18Monitor
  • Later →CVE-2026-59948Jul 8, 2026 · Composer: Arbitrary file write outside vendor via malicious transitive package name
    28Monitor

Remediation

Which version to upgrade to

Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.

Product / packageFixed versionSource
alpine:composer2.7.7-r0 · Alpine:v3.19Package registry (OSV)
debian:composer2.5.5-1+deb12u2 · Debian:12Package registry (OSV)
opensuse:php-composer22.2.3-150400.3.12.1 · openSUSE:Leap 15.5Package registry (OSV)
Packagist:composer/composer2.2.24Package registry (OSV)
Packagist:composer/composer2.7.7Package registry (OSV)
suse:php-composer22.2.3-150400.3.12.1 · SUSE:Linux Enterprise Module for Web and Scripting 15 SP5Package registry (OSV)

Exploit status

Proof of concept available

A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.

Evidence

  • Proof-of-concept repository on GitHub ×1

Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.

Public exploit evidence
SourceKindDate
Proof-of-concept repository on GitHubstars:02024-07-15

Research context

For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.

Timeline

From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.

  1. Published
  2. First PoC+34 d
  3. TodayNov 10, 2026+883 d

No history yet (it accumulates with the daily EPSS job).

Patch and commit links

Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.

Finders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.

No credits in the CNA record.

Variant candidates

Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.

  • CVE-2024-352410 days apartComposer vulnerable to command injection via malicious git branch name
    35Monitor

Chain candidates

An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.

—

Bug bounty scope

No known public program.

Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).

Technical details

Attack conditions

  • Anyone who can reach it over the internet can trigger it.
  • No account or password is required.
  • A user must open a link or visit a page.
  • No special conditions are required; it is repeatable.

If successful

Confidentiality
high · data can be read
Integrity
high · data or configuration can be modified
Availability
high · the service can be disrupted
Attack vector
Network
Attack complexity
Low
Privileges required
None
User interaction
Required
Scope
Unchanged
Confidentiality impact
High
Integrity impact
High
Availability impact
High

CVSS vector

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

nvd-secondary

Change log

  1. Fix✗ → ✓

For records you follow, these changes also arrive as notifications. →

References

All records