GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
GoldOpen Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
GoldOpen Source
ExplorePackagesVulnerabilitiesMCP Servers
Search Gold…⌘KLogin
Home/CWEs/CWE-20
ShareXLinkedInRedditHN
Common Weakness Enumeration

CWE-20: Improper Input Validation

Abstraction
Class
OWASP Top 10
A03:2021 (#3)
Exploit Likelihood
High
Related CVEs
100

Description

The product receives input but does not validate it has the properties required to process it safely.

How to mitigate

  • Validate all input against an allowlist of expected values, lengths, and types at every trust boundary.

How attackers exploit CWE-20

MITRE ATT&CK techniques associated with this weakness class (mapped via MITRE CAPEC). A vulnerability of this type could let an adversary carry out:

T1027Obfuscated Files or InformationstealthT1036MasqueradingstealthT1070Indicator Removalstealth

Related CVEs

HighCVE-2026-67326Security vulnerability in gitpython
HighCVE-2022-4904Security vulnerability in c-ares
MediumCVE-2025-66400Security vulnerability in mdast-util-to-hast

References & documentation

  • https://cwe.mitre.org/data/definitions/20.html
  • NVD CWE listing

Weakness facts

IDCWE-20
AbstractionClass
OWASP Top 10A03:2021 (#3)
Exploit LikelihoodHigh
Related CVEs100

Turn Gold’s intelligence into continuous protection

Safeguard scans your code, containers, and dependencies, tells you what’s exposed, and automates the fixes.

Start free See pricing
GoldOpen Source

The authoritative source for production-ready open-source components. Every package, container image, AI model, and MCP server undergoes rigorous verification for security and license compliance.

Explore Gold

  • Explore Everything
  • Packages
  • Gold Packages
  • Container Images
  • AI Models
  • MCP Servers
  • Agent Skills
  • Chip Manufacturers

Security Data & Tools

  • Scan Your Dependencies
  • Trending Threats
  • Threat RSS Feeds
  • CVE Database
  • Actively Exploited (KEV)
  • SGZ Zero-Days
  • CWE Index
  • MITRE ATT&CK
  • Malicious Packages
  • Security Glossary
  • Supply-Chain Report
  • Developers (API & Badge)
  • Chrome Extension
  • Credits & Data Sources

Products

  • The Platform
  • ESSCM
  • Portal
  • TPRM
  • OSM
  • Cowork
  • Code / Runner
  • Guard

Use Cases

  • Know Your Software
  • Auto-Fix Vulnerabilities
  • Asset Discovery
  • AI Governance
  • MCP Server Security
  • Supply Chain Compliance
  • Zero-Day Discovery
  • All Use Cases

Company

  • About
  • Pricing
  • Blog
  • Documentation
  • Safeguard Academy
  • Contact
  • Privacy Policy
  • Terms of Service

© 2026 Gold Open Source. All rights reserved.

Built with care bySafeguard
T1082
System Information Discovery
discovery
T1499Endpoint Denial of Serviceimpact
T1539Steal Web Session Cookiecredential-access
T1548Abuse Elevation Control Mechanismprivilege-escalation
T1553Subvert Trust Controlsdefense-impairment
T1562Impair Defensesstealth
T1574Hijack Execution Flowstealth · execution

Step-by-step: how CWE-20 gets exploited

A stage-by-stage walkthrough of the attack, mapped to the real MITRE ATT&CK tactics for this weakness — what the attacker is trying to do, what's at risk (what can be stolen or damaged), and how you defend. Understanding the playbook is how you shut it down.

  1. 1
    Executionexecution

    Run attacker-chosen code or commands on the system.

    At risk / what's stolen

    Application logic and the host runtime — an attacker can execute arbitrary code or commands.

    How you defend

    Least-privilege runtime, sandboxing, and safe deserialization/parsing.

  2. 2
    Privilege escalationprivilege-escalation

    Gain higher privileges — from a limited account to admin/root.

    At risk / what's stolen

    Over-permissioned services, weak file/permission boundaries, and setuid paths.

    How you defend

    Drop privileges, enforce least privilege, and lock down file permissions.

  3. 3
    Credential accesscredential-access

    Steal passwords, tokens, keys, and session material.

    At risk / what's stolen

    Passwords, API keys, session tokens, SSH/TLS keys, and secrets in memory, env, or config.

    How you defend

    Secret managers, short-lived tokens, and no secrets in code/env/logs.

  4. 4
    Discoverydiscovery

    Map what else is reachable — hosts, services, data stores, and accounts.

    At risk / what's stolen

    Internal topology, service inventory, and data locations the attacker enumerates.

    How you defend

    Network segmentation and detection of unusual internal scanning.

  5. 5
    Impactimpact

    Cause damage — destroy, encrypt, deny, or manipulate.

    At risk / what's stolen

    Availability and integrity: ransomware encryption, data wiping, or service denial.

    How you defend

    Tested offline backups, integrity checks, and rate/abuse limiting.

This is a defensive, conceptual walkthrough for education — stages reflect MITRE ATT&CK tactics associated with this weakness class, not a working exploit. Not every attack uses every stage.

HighCVE-2019-12439Security vulnerability in bubblewrap
CriticalCVE-2017-5226Security vulnerability in bubblewrap
HighCVE-2026-67326Security vulnerability in gitpython
HighCVE-2022-24439Security vulnerability in gitpython
LowCVE-2026-84947Security vulnerability in undici
LowCVE-2026-84947Security vulnerability in undici
MediumCVE-2026-55602Security vulnerability in http-proxy-middleware
LowCVE-2025-15284Security vulnerability in qs
CriticalCVE-2025-9287Security vulnerability in cipher-base
LowCVE-2025-15284Security vulnerability in qs
HighCVE-2023-26159Security vulnerability in follow-redirects
HighCVE-2022-2385Security vulnerability in aws-iam-authenticator
MediumCVE-2021-32795Security vulnerability in ArchiSteamFarm
MediumCVE-2023-6992Security vulnerability in zlib
HighCVE-2026-15792Security vulnerability in buildkit
LowCVE-2026-84947Security vulnerability in undici
LowCVE-2026-2391Security vulnerability in qs
HighCVE-2023-26159Security vulnerability in follow-redirects
MediumCVE-2026-18504Security vulnerability in fastify
MediumCVE-2026-14631Security vulnerability in webpack-dev-server
MediumCVE-2011-2808Security vulnerability in blink
MediumCVE-2025-66400Security vulnerability in mdast-util-to-hast
HighCVE-2026-54299Security vulnerability in astro
MediumCVE-2026-33769Security vulnerability in astro
HighCVE-2026-75975Security vulnerability in fast-uri
HighCVE-2023-26159Security vulnerability in follow-redirects
HighCVE-2026-55602Security vulnerability in http-proxy-middleware
CriticalCVE-2025-9288Security vulnerability in sha.js
MediumCVE-2026-14631Security vulnerability in webpack-dev-server
MediumCVE-2026-14631Security vulnerability in webpack-dev-server
MediumCVE-2026-27585Security vulnerability in caddy
CriticalCVE-2026-27590Security vulnerability in caddy
HighCVE-2026-45135Security vulnerability in caddy
HighCVE-2026-67326Security vulnerability in gitpython
MediumCVE-2010-4535Security vulnerability in django
MediumCVE-2011-4139Security vulnerability in django
HighCVE-2021-45116Security vulnerability in django
CriticalCVE-2023-31047Security vulnerability in django
MediumCVE-2011-4136Security vulnerability in django
MediumCVE-2011-4138Security vulnerability in django
MediumCVE-2012-3443Security vulnerability in django
MediumCVE-2015-5144Security vulnerability in django
MediumCVE-2014-0480Security vulnerability in django
HighCVE-2026-40176Security vulnerability in composer
HighCVE-2026-40261Security vulnerability in composer
HighCVE-2022-24828Security vulnerability in composer
HighCVE-2026-75975Security vulnerability in fast-uri
HighCVE-2026-84947Security vulnerability in undici
LowCVE-2026-84947Security vulnerability in undici
HighCVE-2026-75975Security vulnerability in fast-uri
HighCVE-2026-75975Security vulnerability in fast-uri
HighCVE-2026-67326Security vulnerability in gitpython
HighCVE-2026-55602Security vulnerability in http-proxy-middleware
HighCVE-2026-75975Security vulnerability in fast-uri
MediumCVE-2026-14631Security vulnerability in webpack-dev-server
HighCVE-2026-75975Security vulnerability in fast-uri
LowCVE-2026-84947Security vulnerability in undici
MediumCVE-2026-39410Security vulnerability in hono
LowCVE-2026-84947Security vulnerability in undici
LowCVE-2026-84947Security vulnerability in undici
LowCVE-2026-84947Security vulnerability in undici
MediumCVE-2026-39410Security vulnerability in hono
LowCVE-2025-15284Security vulnerability in qs
LowCVE-2026-2391Security vulnerability in qs
CriticalCVE-2020-15256Security vulnerability in object-path
HighCVE-2023-26159Security vulnerability in follow-redirects
LowCVE-2023-2961Security vulnerability in advancecomp
LowCVE-2026-84947Security vulnerability in undici
MediumCVE-2013-1629Security vulnerability in pip
HighCVE-2018-20225Security vulnerability in pip
LowCVE-2026-2391Security vulnerability in qs
LowCVE-2025-15284Security vulnerability in qs
HighCVE-2026-45137Security vulnerability in anchor
HighCVE-2008-3657Security vulnerability in ruby
HighCVE-2018-8779Security vulnerability in ruby
HighCVE-2011-4815Security vulnerability in ruby
MediumCVE-2013-1821Security vulnerability in ruby
HighCVE-2015-7551Security vulnerability in ruby
MediumCVE-2011-2705Security vulnerability in ruby
MediumCVE-2015-1855Security vulnerability in ruby
CriticalCVE-2026-42809Security vulnerability in polaris
CriticalCVE-2026-42811Security vulnerability in polaris
CriticalCVE-2026-42810Security vulnerability in polaris
CriticalCVE-2026-42812Security vulnerability in polaris
MediumCVE-2008-5362Security vulnerability in air
CriticalCVE-2015-5568Security vulnerability in air
HighCVE-2022-38900Security vulnerability in decode-uri-component
LowCVE-2025-15284Security vulnerability in qs
HighCVE-2026-84504Security vulnerability in fastify
HighCVE-2026-84469Security vulnerability in fastify
LowCVE-2026-2391Security vulnerability in qs
LowCVE-2025-15284Security vulnerability in qs
LowCVE-2025-15284Security vulnerability in qs
LowCVE-2026-84947Security vulnerability in undici
HighCVE-2026-55602Security vulnerability in http-proxy-middleware
HighCVE-2026-25128Security vulnerability in fast-xml-parser
HighCVE-2026-25128Security vulnerability in fast-xml-parser