CWE-78 / WEAKNESS

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

External input changes the intended operating-system command interpretation.

Category
CWE weaknesses
Version / scope
MITRE CWE live reference; snapshot 2026-11-18
Affected / relevant technologies
Shells / Process launchers
Evidence
Documentation: editorial summary; publisher link access checked. Execution: not tested. Editorial: curated reference.

Defensive analysis and explicitly authorized assessment only. This website performs no scans, exploitation, model calls or infrastructure changes. Indicators below are investigation opportunities, not proof of compromise or guaranteed detectors.

Mechanism and prerequisites

Untrusted data reaches command construction or shell evaluation.

Potential impact

Actions under the application's operating-system identity.

Detection and investigation

Preserve source timestamps, asset identity and collection context. Correlate independent evidence before attributing malicious intent. In OT, review passive evidence with the process owner; do not induce failures, replay commands or write to controllers to test a hypothesis.

Mitigation and response

Apply changes through the asset owner's approved change and recovery process. Documentation review is separate from successful testing or verified production protection.

Related technical context

Existing read-only CLI diagnostics

Protocol-associated candidates projected from the existing CLI Library. They are not a detection recipe or proof of this security condition. Verify the original platform, version and mode.

FortiOS — TLS/SSH inspection profiles

show firewall ssl-ssh-profile

Inspect inspection settings referenced by firewall policies.

Open original CLI command

OpenSSH — Effective SSH client configuration

ssh -G router.example

Inspect resolved client settings for an example host alias before opening a session.

Open original CLI command

Hirschmann HiOS — Review SSH server settings

show ssh server

Review SSH server settings. Compare enabled policy, trusted interfaces and counter deltas with intended access controls.

Open original CLI command

Hirschmann HiSecOS — Inspect secure shell configuration

show ssh

Inspect secure shell configuration. Inspect enabled policies, profile assignments and pending changes; profile presence is not proof of traffic enforcement.

Open original CLI command

Siemens SCALANCE XM/XR — Inspect secure administrative shell settings

show ip ssh

Inspect secure administrative shell settings. Review enabled access methods and policy bindings; redact internal identities and credentials.

Open original CLI command

tshark — Inspect SSH protocol negotiation

tshark -n -r capture.pcapng -c 100 -Y 'ssh'

Inspect SSH protocol negotiation. Inspect frame number, endpoints, decoded protocol details and timestamps. TCP analysis flags are heuristics, not proof of network fault.

Open original CLI command

Related security reading

Continue directly to another reference. Editorial reading connections do not assert official CWE/CAPEC/ATT&CK/OWASP equivalence or mappings.

Publisher weakness and attack-pattern relationships

These relationships retain the publisher's source attributes and view context; they do not establish that an attack or weakness applies to a particular system.

Authoritative sources and attribution

Identifiers and source titles belong to OWASP, MITRE, the CVE Program, CISA, NIST or the cited vendor. Summaries are original editorial explanations. This is not an official framework mirror. Review baseline: 2026-11-18. Live documents can change; check exact current applicability.

Source review supports bounded reference text. It is not execution evidence, a completeness claim, a CVSS assessment, a compliance certification or verification of production security.