Skip to content
Noroxi
CVE-2011-2694· NVD / CVE Program· CNA redhat

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 b

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).

LowCVSS 2.6 · v2.0—No exploit Fix available
Published
Jul 29, 2011
Updated
Jun 16, 2026
EPSS
6.0% · 93th percentile
Follow this CVE

Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.

Report tools

JSON

Action score

12

Monitor

Low priority for now.

CVSS
10 / 40 · 2.6 / 10
CISA KEV
0 / 30 · Not listed
EPSS
2 / 30 · 6.0%

Noroxi analysis

No Noroxi analysis for this record yet

We don't hand-write analysis for the hundreds of thousands of vulnerabilities in the database; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.

We use this product, ask for help

Affected systems

VendorProduct
sambasamba
canonicalubuntu linux
debiandebian linux

Affected 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.

EcosystemPackageAffected rangeFix
Debian:12sambabefore 2:3.5.10~dfsg-12:3.5.10~dfsg-1
Debian:5.0sambabefore 2:3.2.5-4lenny152:3.2.5-4lenny15
Debian:6.0sambabefore 2:3.5.6~dfsg-3squeeze52:3.5.6~dfsg-3squeeze5
openSUSE:Tumbleweedsambabefore 4.5.0-1.14.5.0-1.1
Red Hat:enterprise_linux:4::assambabefore 0:3.0.33-0.34.el40:3.0.33-0.34.el4
Red Hat:enterprise_linux:4::assamba-clientbefore 0:3.0.33-0.34.el40:3.0.33-0.34.el4
Red Hat:enterprise_linux:4::assamba-commonbefore 0:3.0.33-0.34.el40:3.0.33-0.34.el4
Red Hat:enterprise_linux:4::assamba-debuginfobefore 0:3.0.33-0.34.el40:3.0.33-0.34.el4
Red Hat:enterprise_linux:4::assamba-swatbefore 0:3.0.33-0.34.el40:3.0.33-0.34.el4
Red Hat:enterprise_linux:5::clientlibsmbclientbefore 0:3.0.33-3.29.el5_7.40:3.0.33-3.29.el5_7.4
Red Hat:enterprise_linux:5::clientsambabefore 0:3.0.33-3.29.el5_7.40:3.0.33-3.29.el5_7.4
Red Hat:enterprise_linux:5::clientsamba-clientbefore 0:3.0.33-3.29.el5_7.40:3.0.33-3.29.el5_7.4
Red Hat:enterprise_linux:5::clientsamba-commonbefore 0:3.0.33-3.29.el5_7.40:3.0.33-3.29.el5_7.4
Red Hat:enterprise_linux:5::clientsamba-debuginfobefore 0:3.0.33-3.29.el5_7.40:3.0.33-3.29.el5_7.4
Red Hat:enterprise_linux:5::clientsamba-swatbefore 0:3.0.33-3.29.el5_7.40:3.0.33-3.29.el5_7.4
Red Hat:enterprise_linux:5::clientsamba3xbefore 0:3.5.4-0.83.el5_7.20:3.5.4-0.83.el5_7.2
Red Hat:enterprise_linux:5::clientsamba3x-clientbefore 0:3.5.4-0.83.el5_7.20:3.5.4-0.83.el5_7.2
Red Hat:enterprise_linux:5::clientsamba3x-commonbefore 0:3.5.4-0.83.el5_7.20:3.5.4-0.83.el5_7.2
Red Hat:enterprise_linux:5::clientsamba3x-debuginfobefore 0:3.5.4-0.83.el5_7.20:3.5.4-0.83.el5_7.2
Red Hat:enterprise_linux:5::clientsamba3x-docbefore 0:3.5.4-0.83.el5_7.20:3.5.4-0.83.el5_7.2
Red Hat:enterprise_linux:5::clientsamba3x-domainjoin-guibefore 0:3.5.4-0.83.el5_7.20:3.5.4-0.83.el5_7.2
Red Hat:enterprise_linux:5::clientsamba3x-swatbefore 0:3.5.4-0.83.el5_7.20:3.5.4-0.83.el5_7.2
Red Hat:enterprise_linux:5::clientsamba3x-winbindbefore 0:3.5.4-0.83.el5_7.20:3.5.4-0.83.el5_7.2
Red Hat:enterprise_linux:5::client_workstationlibsmbclient-develbefore 0:3.0.33-3.29.el5_7.40:3.0.33-3.29.el5_7.4

+16

Other 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 cliKEV
    99Now
  • 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 befor
    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, al
    66This week
  • CVE-2003-0201Buffer overflow in the call_trans2open function in trans2.c for Samba 2.2.x before 2.2.8a, 2.0.10 and earlier 2.0.x versions, and Samba-TNG
    65This week
  • CVE-2007-2446Multiple heap-based buffer overflows in the NDR parsing in smbd in Samba 3.0.0 through 3.0.25rc3 allow remote attackers to execute arbitrary
    63This week
  • CVE-2012-1182The RPC code generator in Samba 3.x before 3.4.16, 3.5.x before 3.5.14, and 3.6.x before 3.6.4 does not implement validation of an array len
    62This week

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
debian:samba2:3.5.10~dfsg-1 · Debian:12Package registry (OSV)
opensuse:samba4.5.0-1.1 · openSUSE:TumbleweedPackage registry (OSV)
red hat:libsmbclient0:3.0.33-3.29.el5_7.4 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:libsmbclient-devel0:3.0.33-3.29.el5_7.4 · Red Hat:enterprise_linux:5::client_workstationPackage registry (OSV)
red hat:samba0:3.0.33-0.34.el4 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:samba-client0:3.0.33-0.34.el4 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:samba-common0:3.0.33-0.34.el4 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:samba-debuginfo0:3.0.33-0.34.el4 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:samba-swat0:3.0.33-0.34.el4 · Red Hat:enterprise_linux:4::asPackage registry (OSV)
red hat:samba3x0:3.5.4-0.83.el5_7.2 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:samba3x-client0:3.5.4-0.83.el5_7.2 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:samba3x-common0:3.5.4-0.83.el5_7.2 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:samba3x-debuginfo0:3.5.4-0.83.el5_7.2 · Red Hat:enterprise_linux:5::clientPackage registry (OSV)
red hat:samba3x-doc0:3.5.4-0.83.el5_7.2 · Red Hat:enterprise_linux:5::clientPackage 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.

EPSS, last 120 days

FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).

Patch and commit links

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

No commit or PR link among the references.

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.

No nightly-computed relations.

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

  • 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

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.

A representative example of this vulnerability class. Not the vendor's source code; it shows the faulty pattern and its fix.

Vulnerable

ts
commentEl.innerHTML = comment.body;

Fixed

ts
commentEl.textContent = comment.body;

Change log

  1. Fix✗ → ✓

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

References

All records