# What is CVE-2012-3040?

> CVE-2012-3040 is a medium-severity flaw (CVSS 4.3) in Simatic S7-1200 from Siemens, published on 10 October 2012. It is not on the list of flaws known to be exploited today. The latest forecast puts its chance of use in the next 30 days at 2.6%. If you run an affected version, plan in the vendor’s fix.

Canonical page: https://www.precursorintelligence.com/what-is/cve-2012-3040

## At a glance

- **Verdict:** Plan it in. No sign of exploitation and a low forecast. Patch it in your normal update cycle.
- **Precursor Intelligence risk score:** 23 out of 100 (Low); action: Monitor. Kept up to date as the evidence changes.
- **Severity:** Medium (CVSS 4.3 out of 10)
- **Known to be exploited:** No, not on the list of flaws known to be exploited today
- **Chance of use in the next 30 days:** 2.6% (latest exploit-likelihood forecast)
- **Published:** 10 October 2012
- **Record last updated:** 11 April 2025
- **Main product:** Simatic S7-1200 from Siemens
- **Affected products:** 18

## What is CVE-2012-3040? In plain terms

It can be attacked from anywhere on the internet without logging in. If it works, the attacker can change some data.

### The official description

Cross-site scripting (XSS) vulnerability in the web server on Siemens SIMATIC S7-1200 PLCs 2.x through 3.0.1 allows remote attackers to inject arbitrary web script or HTML via a crafted URI.

### What kind of flaw is it?

- CWE-79: Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')

### How an attack on it works

- Where an attacker can be: Anywhere on the internet
- How hard it is to pull off: Some conditions needed
- Login needed first: No login needed
- What an attacker gets: Can change some data

Severity vector: `AV:N/AC:M/Au:N/C:N/I:P/A:N`

## Is CVE-2012-3040 being exploited? Not that we know of

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 2.6%. That can change at any time, which is why we keep watching.

Exploit likelihood over the last 7 days: 2.6%, 2.6%, 2.6%, 2.6%, 2.6%, 2.6%, 2.6%.

### Timeline

- 10 October 2012: Published
- 11 April 2025: Record last updated

### How Precursor Intelligence ranks it

CVE-2012-3040 scores **23 out of 100 (Low)**, with the action "Monitor".

Every published flaw gets a risk score from 0 to 100, kept up to date as the evidence changes. Four things go into the score, from the one that counts most to the ones that count less:

- Evidence it is being exploited: biggest factor
- How severe it is: strong factor
- How widely exposed it is: smaller factor
- Threat activity around it: smaller factor

85 and above is Critical. Anything confirmed as exploited is always marked for an emergency patch, whatever its score. When this flaw matches software you track, it lands in your list with its score and the reasons behind it.

## Who is affected by CVE-2012-3040?

The published record lists 18 products. Versions are as published: "2.0.0 to before 3.0.2" means from 2.0.0 up to, but not including, 3.0.2.

- [Simatic S7-1200](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Hardware): version not specified
- [Simatic S7-1200 CPU 1211c](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1211c) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Hardware): version not specified
- [Simatic S7-1200 CPU 1211c Firmware](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1211c_firmware) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Operating system): 2.0.0 to before 3.0.2
- [Simatic S7-1200 CPU 1212c](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1212c) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Hardware): version not specified
- [Simatic S7-1200 CPU 1212c Firmware](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1212c_firmware) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Operating system): 2.0.0 to before 3.0.2
- [Simatic S7-1200 CPU 1212fc](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1212fc) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Hardware): version not specified
- [Simatic S7-1200 CPU 1212fc Firmware](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1212fc_firmware) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Operating system): 2.0.0 to before 3.0.2
- [Simatic S7-1200 CPU 1214 Fc](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1214_fc) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Hardware): version not specified
- [Simatic S7-1200 CPU 1214 Fc Firmware](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1214_fc_firmware) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Operating system): 2.0.0 to before 3.0.2
- [Simatic S7-1200 CPU 1214c](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1214c) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Hardware): version not specified
- [Simatic S7-1200 CPU 1214c Firmware](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1214c_firmware) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Operating system): 2.0.0 to before 3.0.2
- [Simatic S7-1200 CPU 1215 Fc](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1215_fc) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Hardware): version not specified
- [Simatic S7-1200 CPU 1215 Fc Firmware](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1215_fc_firmware) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Operating system): 2.0.0 to before 3.0.2
- [Simatic S7-1200 CPU 1215c](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1215c) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Hardware): version not specified
- [Simatic S7-1200 CPU 1215c Firmware](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1215c_firmware) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Operating system): 2.0.0 to before 3.0.2
- [Simatic S7-1200 CPU 1217c](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1217c) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Hardware): version not specified
- [Simatic S7-1200 CPU 1217c Firmware](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_cpu_1217c_firmware) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Operating system): 2.0.0 to before 3.0.2
- [Simatic S7-1200 Firmware](https://www.precursorintelligence.com/product/siemens/simatic_s7-1200_firmware) by [Siemens](https://www.precursorintelligence.com/vendors/siemens) (Operating system): 2.0.0 to before 3.0.2

## How do I fix CVE-2012-3040?

1. **Check whether you run it.** Compare your versions with the affected products above. Not sure what you run? Precursor Intelligence can work it out from your public website, or you can pick it from a list.
2. **Apply the vendor’s fix.** Install the update named in the vendor’s advisory. We’ve put the advisory first in the list.
3. **If you can’t patch today.** Follow any mitigation the vendor publishes, and limit who can reach the affected system from the internet until the update is in.
4. **Keep an eye on it.** Track the product and we tell you as soon as we spot this flaw on the list of exploited flaws, or a jump in its exploit likelihood.

### References

- [siemens.com](http://www.siemens.com/corporate-technology/pool/de/forschungsfelder/siemens_security_advisory_ssa-279823.pdf) (Broken link, Vendor advisory)
- [en.securitylab.ru](http://en.securitylab.ru/lab/PT-2012-50) (Third-party advisory)
- [osvdb.org](http://osvdb.org/86130) (Broken link)
- [secunia.com](http://secunia.com/advisories/50816) (Third-party advisory)
- [us-cert.gov](http://www.us-cert.gov/control_systems/pdf/ICSA-12-283-01.pdf) (Broken link, Third-party advisory, Government resource)

## Questions

### What is CVE-2012-3040?

CVE-2012-3040 is a medium-severity flaw in Simatic S7-1200 from Siemens, published on 10 October 2012. It can be attacked from anywhere on the internet without logging in. If it works, the attacker can change some data.

### How serious is CVE-2012-3040?

It scores 4.3 out of 10 on the CVSS severity scale, which is medium. Our risk score for CVE-2012-3040 is 23 out of 100, which is Low. Its action is "Monitor". No sign of exploitation and a low forecast. Patch it in your normal update cycle.

### Is CVE-2012-3040 being exploited?

It is not on the list of flaws known to be exploited today. The latest forecast puts the chance of it being used in the next 30 days at 2.6%. That can change at any time, which is why we keep watching.

### Which versions does CVE-2012-3040 affect?

For Simatic S7-1200 from Siemens: version not specified. The record lists 18 products in all, each with its versions, under "Who is affected" on this page.

### How do I fix CVE-2012-3040?

Install the update the vendor names in its advisory, linked first under "How do I fix" on this page. If you can't patch today, follow the vendor's mitigation and limit who can reach the affected system from the internet.

## Does CVE-2012-3040 affect you?

Precursor Intelligence keeps checking for you:

- **Tell us what you run.** Pick your software from a list, or let us work it out from your website.
- **We match it to every flaw.** Over 400,000 published flaws, checked against your list.
- **Ranked by real-world risk.** Every flaw gets a 0 to 100 risk score, kept up to date, led by evidence criminals are using it.
- **Told as soon as we know.** An alert by email, in the app or by webhook to your own tools.

Start free (no card, nothing to install): https://www.precursorintelligence.com/register
Book a demo: https://www.precursorintelligence.com/contact

