diff --git a/lib/modules/manager/terraform/hcl/index.ts b/lib/modules/manager/terraform/hcl/index.ts
index 9598e001c6f27b3e7197ffdd8dd1bd1c51fa5075..576d8de1c55a182c9763dd97c5742a4e726e351d 100644
--- a/lib/modules/manager/terraform/hcl/index.ts
+++ b/lib/modules/manager/terraform/hcl/index.ts
@@ -1,7 +1,11 @@
 import * as hcl_parser from 'hcl2-parser';
 
 export function parseHCL(content: string): any {
-  return hcl_parser.parseToObject(content)[0];
+  try {
+    return hcl_parser.parseToObject(content)[0];
+  } catch (err) /* istanbul ignore next */ {
+    return null;
+  }
 }
 
 export function parseJSON(content: string): any {