Skip to content
Release: Australia · Updated: 2026-03-12 · Official documentation · View source

Validate MIME Type for Multi-Extension Filenames, Polyglot Files, and Null-Byte Injection

Use a system property to prevent attachments from bypassing MIME-type restrictions.

Use the glide.attachment.enable_secure_filename_validation system property to enable strict validation of attachment file names. This change to prevents attachments from bypassing MIME-type restrictions. When set to true, the platform performs full file name sanitization and rejects unsafe patterns that could otherwise be used to upload malicious files.

Add a record to the System Properties [sys_properties] table with the name glide.attachment.enable_secure_filename_validation and a value of true.

More information

AttributeDescription
Configuration nameglide.attachment.enable_secure_filename_validation
Configuration typeSystem Properties \(/sys\_properties\_list.do\)
Data typeBoolean
Recommended valuetrue
Default valuefalse
Fallback valuefalse
CategoryValidation, sanitization, and encoding
Security risk
  • Severity score:4.6
  • CVSS score: Medium
  • Security risk details:

MIME type validation for file attachments doesn't take place in multi-extension processing or when null bytes are present. This allows attackers to circumvent the glide.attachment.extensions and glide.security.file.mime_type.validation system properties through null-byte injection, multi-extension file names and polyglot files, leading to malicious file uploads.

Functional impact

When the glide.attachment.enable_secure_filename_validation property is set to true:

  • Uploads that previously passed may now be rejected.
  • Integrations or automations that rely on generating file names with multiple dots or unusual patterns may fail until updated.
  • Custom UI pages, scoped apps, or API consumers that upload files programmatically (especially with templated file names) may hit validation errors.
  • CI/CD pipelines that import files, ATF tests, or legacy scripts may need updates to ensure compliant file names.

Functionality that does not rely on unsafe file name patterns continue to work normally.

Dependencies and prerequisitesNone

Parent Topic:Validation, sanitization, and encoding