GdbApplication · Gnu

CVE-2011-4355

MEDIUM · 6.9 CVSS v2.0 Published 2013-03-05
Fix available
A fix is available. Upgrade to after 7.4.1 or later.
See remediation →
74/100
Remediation priority · Elevated
No privileges Zero-click

Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.

NVD · unedited
GNU Project Debugger (GDB) before 7.5, when .debug_gdb_scripts is defined, automatically loads certain files from the current working directory, which allows local users to gain privileges via crafted files such as Python scripts.

Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.

dbcve analysis · moderate confidence

GDB before version 7.5 automatically loads script files from the current working directory when a binary contains a .debug_gdb_scripts section, allowing local attackers to place malicious script files (e.g., Python scripts) that execute with the privileges of the user running the debugger.

MitigationUpgrade GDB to version 7.5 or later; avoid running GDB from directories writable by untrusted users.

Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.

Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.

NVD · CPE data
GdbApplication
Affected:<= 7.4.1= 4.18= 5.0= 5.0.92= 5.0.93= 5.1= 5.1.1= 5.2= 5.2.1= 5.3= 6.0= 6.1

CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.

From the vector
Attack vector
Local
Complexity
M
Authentication
None
Confidentiality
Complete
Integrity
Complete
Availability
Complete

AV:L/AC:M/Au:N/C:C/I:C/A:C

Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.

dbcve checks

Work through these to decide whether this CVE applies to you.

  1. Check installed GDB version
    Run 'gdb --version' or 'gdb -v' and note the version number
    Affected if The version is 7.4.1 or lower, or matches any of these: 4.18, 5.0, 5.0.92, 5.0.93, 5.1, 5.1.1, 5.2, 5.2.1, 5.3, 6.0, or 6.1
  2. Identify binaries with .debug_gdb_scripts section
    Use 'readelf -S <binary> | grep debug_gdb_scripts' on binaries you intend to debug, or scan with 'find /path -type f -exec readelf -S {} \; 2>/dev/null | grep debug_gdb_scripts'
    Affected if Any binary you debug contains a .debug_gdb_scripts section and you are using a vulnerable GDB version
  3. Check for script files in common locations
    Look for .gdbinit, .gdbinit.py, or Python script files in directories where you run GDB: 'ls -la .gdbinit*' and check current working directory contents before running GDB
    Affected if Script files exist in directories where you run GDB and you are using a vulnerable GDB version on a binary with .debug_gdb_scripts section
  4. Verify GDB script auto-loading setting
    Run 'show script-prefix' in GDB to see where it loads scripts from, and check if 'set auto-load off' is not set in GDB configuration
    Affected if Auto-loading is enabled and scripts can be loaded from the current working directory

You are affected if you run a GDB version 7.4.1 or lower (or one of the older versions listed) and debug binaries containing a .debug_gdb_scripts section from directories that could contain attacker-controlled scripts.

Generated from the published advisory. Verify against your own configuration.

Check your environment

Paste your version and any relevant configuration and it will be compared against the affected criteria above. Do not include secrets or credentials.

AI-assisted, checked against the advisory. Informational, not a guarantee.

Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.

From vendor data
Upgrade available Upgrade to a release after 7.4.1
Interim mitigation

Upgrade GDB to version 7.5 or later; avoid running GDB from directories writable by untrusted users.

Fix this in Gdb Scoped from the published advisory
  • Consultation1.0 h
  • Implementation2.0 h
  • Testing2.0 h
  • Review / QA1.0 h
6.0 hours of engineering $1,040
Get the upgrade done

An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $1,664.

Scan for this in your stack

Free · runs locally
dbcve dependency scanner

Check whether your project pulls in CVE-2011-4355 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.

References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.

Primary sources

Practitioner notes

Contributed

Peer-ranked notes from engineers who’ve handled CVE-2011-4355 in production — separate from our analysis above.

No notes yet

Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.

What this is

A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.

What belongs here
  • Verified mitigations, workarounds, and config changes
  • Version or environment caveats, and links to real fixes
  • No weaponised exploit code, or anything meant to cause harm
  • No spam, self-promotion, credentials, or personal data