CVE-2011-2694: Cross-site scripting (XSS) vulnerability in the chg_passwd function in web/swat.c in the Samba Web Administration Tool (SWAT) in Samba 3.x…
Noroxi assessment
Priority: Monitor (action score 12/100)
- The sources we track (CISA KEV, Exploit-DB, Metasploit, Nuclei, GitHub) show no public exploit code or exploitation in the wild.
- Probability of exploitation in the next 30 days: 6% (FIRST EPSS); higher than 93.4% of all records.
- Special conditions such as timing or configuration are required.
- Fixed version: samba (Debian:12) 2:3.5.10~dfsg-1; samba (Debian:5.0) 2:3.2.5-4lenny15; samba (Debian:6.0) 2:3.5.6~dfsg-3squeeze5.
Low priority for now. Upgrade to samba (Debian:12) 2:3.5.10~dfsg-1; samba (Debian:5.0) 2:3.2.5-4lenny15; samba (Debian:6.0) 2:3.5.6~dfsg-3squeeze5 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
Cross-site scripting (XSS) vulnerability in the chg_passwd function in web/swat.c in the Samba Web Administration Tool (SWAT) in Samba 3.x before 3.5.10 allows remote authenticated administrators to inject arbitrary web script or HTML via the username parameter to the passwd program (aka the user field to the Change Password page).
- BDU:2015-06161
- BDU:2015-06162
- BDU:2015-06325
- BDU:2015-06327
- BDU:2015-06509
- BDU:2015-06514
- BDU:2015-06519
- BDU:2015-06520
- BDU:2015-06521
- BDU:2015-06522
- BDU:2015-06527
- BDU:2015-06528
- BDU:2015-06529
- BDU:2015-06530
- BDU:2015-06531
- DSA-2290-1
- openSUSE-SU-2024:10069-1
- RHSA-2011:1219
- RHSA-2011:1220
- RHSA-2011:1221
- Published
- Jul 29, 2011
- Updated
- Jun 16, 2026
- EPSS
- 6.0% · 93th percentile
- CWE
- CWE-79
Report tools
Action score
12
Low priority for now.
- CVSS
- 10 / 40 · 2.6 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 2 / 30 · 6.0%
Get told when this record changes
- Not in KEV: no record of exploitation in the wild
- No public exploit code on record
- A fix has been released
If any of these changes, we'll tell you in the daily email digest.
Limit the impact of XSSCheck security headers
Is your version affected? Check itNoroxi 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 helpAffected 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.
| Vendor | Product | CPE |
|---|---|---|
| samba | samba | cpe:2.3:a:samba:samba |
| canonical | ubuntu linux | cpe:2.3:o:canonical:ubuntu_linux |
| debian | debian linux | cpe:2.3:o:debian:debian_linux |
Limit the impact of XSS
This is a cross-site scripting (XSS) vulnerability. A well-configured Content-Security-Policy doesn't fix it, but greatly reduces its impact. Check your site's CSP and other security headers for free.
Check security headersAffected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- canonical ubuntu linux10.04
- canonical ubuntu linux10.10
- canonical ubuntu linux11.04
- canonical ubuntu linux8.04
- debian debian linux5.0
- debian debian linux6.0
- debian debian linux7.0
- samba samba3.5.0 and later · before 3.5.10
- samba samba3.4.0 and later · before 3.4.14
- samba samba3.0.0 and later · before 3.3.16
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:12 | samba | before 2:3.5.10~dfsg-1 | 2:3.5.10~dfsg-1 |
| Debian:5.0 | samba | before 2:3.2.5-4lenny15 | 2:3.2.5-4lenny15 |
| Debian:6.0 | samba | before 2:3.5.6~dfsg-3squeeze5 | 2:3.5.6~dfsg-3squeeze5 |
| openSUSE:Tumbleweed | samba | before 4.5.0-1.1 | 4.5.0-1.1 |
| Red Hat:enterprise_linux:4::as | samba | before 0:3.0.33-0.34.el4 | 0:3.0.33-0.34.el4 |
| Red Hat:enterprise_linux:4::as | samba-client | before 0:3.0.33-0.34.el4 | 0:3.0.33-0.34.el4 |
| Red Hat:enterprise_linux:4::as | samba-common | before 0:3.0.33-0.34.el4 | 0:3.0.33-0.34.el4 |
| Red Hat:enterprise_linux:4::as | samba-debuginfo | before 0:3.0.33-0.34.el4 | 0:3.0.33-0.34.el4 |
| Red Hat:enterprise_linux:4::as | samba-swat | before 0:3.0.33-0.34.el4 | 0:3.0.33-0.34.el4 |
| Red Hat:enterprise_linux:5::client | libsmbclient | before 0:3.0.33-3.29.el5_7.4 | 0:3.0.33-3.29.el5_7.4 |
| Red Hat:enterprise_linux:5::client | samba | before 0:3.0.33-3.29.el5_7.4 | 0:3.0.33-3.29.el5_7.4 |
| Red Hat:enterprise_linux:5::client | samba-client | before 0:3.0.33-3.29.el5_7.4 | 0:3.0.33-3.29.el5_7.4 |
| Red Hat:enterprise_linux:5::client | samba-common | before 0:3.0.33-3.29.el5_7.4 | 0:3.0.33-3.29.el5_7.4 |
| Red Hat:enterprise_linux:5::client | samba-debuginfo | before 0:3.0.33-3.29.el5_7.4 | 0:3.0.33-3.29.el5_7.4 |
| Red Hat:enterprise_linux:5::client | samba-swat | before 0:3.0.33-3.29.el5_7.4 | 0:3.0.33-3.29.el5_7.4 |
| Red Hat:enterprise_linux:5::client | samba3x | before 0:3.5.4-0.83.el5_7.2 | 0:3.5.4-0.83.el5_7.2 |
| Red Hat:enterprise_linux:5::client | samba3x-client | before 0:3.5.4-0.83.el5_7.2 | 0:3.5.4-0.83.el5_7.2 |
| Red Hat:enterprise_linux:5::client | samba3x-common | before 0:3.5.4-0.83.el5_7.2 | 0:3.5.4-0.83.el5_7.2 |
| Red Hat:enterprise_linux:5::client | samba3x-debuginfo | before 0:3.5.4-0.83.el5_7.2 | 0:3.5.4-0.83.el5_7.2 |
| Red Hat:enterprise_linux:5::client | samba3x-doc | before 0:3.5.4-0.83.el5_7.2 | 0:3.5.4-0.83.el5_7.2 |
| Red Hat:enterprise_linux:5::client | samba3x-domainjoin-gui | before 0:3.5.4-0.83.el5_7.2 | 0:3.5.4-0.83.el5_7.2 |
| Red Hat:enterprise_linux:5::client | samba3x-swat | before 0:3.5.4-0.83.el5_7.2 | 0:3.5.4-0.83.el5_7.2 |
| Red Hat:enterprise_linux:5::client | samba3x-winbind | before 0:3.5.4-0.83.el5_7.2 | 0:3.5.4-0.83.el5_7.2 |
| Red Hat:enterprise_linux:5::client_workstation | libsmbclient-devel | before 0:3.0.33-3.29.el5_7.4 | 0:3.0.33-3.29.el5_7.4 |
+16
Same product
samba: all recordsOther highest-scoring records for the same primary product.
- CVE-2017-7494Samba since version 3.5.0 and before 4.6.4, 4.5.10 and 4.4.14 is vulnerable to remote code execution vulnerability, allowing a malicious…KEV99Now
- CVE-2015-0240The Netlogon server implementation in smbd in Samba 3.5.x and 3.6.x before 3.6.25, 4.0.x before 4.0.25, 4.1.x before 4.1.17, and 4.2.x…66This week
- CVE-2003-0085Buffer overflow in the SMB/CIFS packet fragment re-assembly code for SMB daemon (smbd) in Samba before 2.2.8, and Samba-TNG before 0.3.1…66This week
Published before and after this one in the same product
- ← EarlierCVE-2011-1678Apr 9, 2011 · smbfs in Samba 3.5.8 and earlier attempts to use (1) mount.cifs to append to the /etc/mtab file and (2) umount.cifs to append to the…13Monitor
- ← EarlierCVE-2011-2522Jul 29, 2011 · Multiple cross-site request forgery (CSRF) vulnerabilities in the Samba Web Administration Tool (SWAT) in Samba 3.x before 3.5.10 allow…30Monitor
- Later →CVE-2011-2724Sep 6, 2011 · The check_mtab function in client/mount.cifs.c in mount.cifs in smbfs in Samba 3.5.10 and earlier does not properly verify that the (1)…4Monitor
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:samba | 2:3.5.10~dfsg-1 · Debian:12 | Package registry (OSV) |
| opensuse:samba | 4.5.0-1.1 · openSUSE:Tumbleweed | Package registry (OSV) |
| red hat:libsmbclient | 0:3.0.33-3.29.el5_7.4 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:libsmbclient-devel | 0:3.0.33-3.29.el5_7.4 · Red Hat:enterprise_linux:5::client_workstation | Package registry (OSV) |
| red hat:samba | 0:3.0.33-0.34.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:samba-client | 0:3.0.33-0.34.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:samba-common | 0:3.0.33-0.34.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:samba-debuginfo | 0:3.0.33-0.34.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:samba-swat | 0:3.0.33-0.34.el4 · Red Hat:enterprise_linux:4::as | Package registry (OSV) |
| red hat:samba3x | 0:3.5.4-0.83.el5_7.2 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:samba3x-client | 0:3.5.4-0.83.el5_7.2 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:samba3x-common | 0:3.5.4-0.83.el5_7.2 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:samba3x-debuginfo | 0:3.5.4-0.83.el5_7.2 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:samba3x-doc | 0:3.5.4-0.83.el5_7.2 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
Exploit status
No known public exploit
No public exploit has been observed yet. That doesn't mean you're safe, only that the bar is a little higher.
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.
No dated events beyond publication.
Not on record for this CVE: EPSS history · patch commit or PR link · researcher credit · variant or chain candidate · public bounty program.
Technical details
Attack conditions
- Special conditions such as timing or configuration are required.
If successful
- Confidentiality
- none
- Integrity
- P · data or configuration can be modified
- Availability
- none
- Attack complexity
- High
- Confidentiality impact
- None
- Integrity impact
- P
- Availability impact
- None
Weakness class (CWE)
CWE-79 · Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')CVSS vector
AV:N/AC:H/Au:N/C:N/I:P/A:N
nvd-primary
Root cause
User content is inserted into the page as HTML. The browser interprets the content as code rather than data.
The bug in code
The whole CWE-79 classA representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.
Vulnerable
commentEl.innerHTML = comment.body;Fixed
commentEl.textContent = comment.body;Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
Attack patterns (CAPEC)
ATT&CK techniques
—
Change log (1)
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
Show all references (15 more)Show less
- osvdb.org/74072
- samba.org/samba/history/samba-3.5.10.html
- secunia.com/advisories/45393
- secunia.com/advisories/45488
- secunia.com/advisories/45496
- securitytracker.com/id?1025852
- ubuntu.com/usn/usn-1182-1
- www.debian.org/security/2011/dsa-2290
- www.itrc.hp.com/service/cki/docDisplay.do?docId=emr_na-c03008543
- www.mandriva.com/security/advisories?name=MDVSA-2011:121
- www.samba.org/samba/security/CVE-2011-2694
- www.securityfocus.com/bid/48901
- bugzilla.redhat.com/show_bug.cgi?id=722537
- bugzilla.samba.org/show_bug.cgi?id=8289
- exchange.xforce.ibmcloud.com/vulnerabilities/68844
Vendor advisories and official records. Exploit/PoC links are deliberately left out.